package com.github.wisdom.member.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ccssoft.m8.common.ccssoft.modules.util.EntityWrapperHandle;
import com.ccssoft.m8.common.ccssoft.modules.util.PageUtils;
import com.ccssoft.m8.common.ccssoft.modules.util.Query;

import com.github.wisdom.member.dao.MemberNurseDao;
import com.github.wisdom.member.entity.MemberNurseEntity;
import com.github.wisdom.member.service.MemberNurseService;


@Service("memberNurseService")
public class MemberNurseServiceImpl extends ServiceImpl<MemberNurseDao, MemberNurseEntity> implements MemberNurseService<MemberNurseEntity> {

    @Override
    public PageUtils<MemberNurseEntity> queryPage(Map<String, Object> params) {
    	EntityWrapperHandle<MemberNurseEntity> ew = new EntityWrapperHandle<MemberNurseEntity>(params);
		Page<MemberNurseEntity> page = this.selectPage(new Query<MemberNurseEntity>(params).getPage(),ew);
		page.setTotal(this.selectCount(ew));
		return new PageUtils<MemberNurseEntity>(page);
    }
    @Override
    public List<MemberNurseEntity> queryPageByLike(Map<String, Object> params) {
    	return baseMapper.queryPageByLike(params);
    }
    

}
